package com.zenith.gateway.feign;

import com.zenith.common.result.Result;
import com.zenith.gateway.po.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "zenith-user-service", path = "/api/user/user", contextId = "gateway-user-client")
public interface UserFeignClient {
    
    @GetMapping("/getUserByUsername")
    Result<UserDTO> getUserByUsername(@RequestParam("username") String username);
}